package com.sh.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sh.bean.Resfood;
import org.springframework.stereotype.Component;

import java.util.List;

public interface ResfoodBiz {

    List<Resfood> findAll();

    Resfood findById(Integer id);

    Page<Resfood> findFoods( Resfood food, int pageNo, int pageSize, String sortby, String sort);

    Page<Resfood> findByPage(int pageNo, int pageSize, String sortby, String sort);

    Integer addResfood( Resfood food );

}
